<html><head>
		<meta charset="utf-8">
		<title>商城管理中心</title>
		<link rel="stylesheet" media="screen" href="css/login.css">

	<script src="static/js/jquery-3.3.1.min.js" ></script>
	</head>
	<body>
		<!-- particles.js container -->
		<div id="particles-js" style="display: flex;align-items: center;justify-content: center">
			
		<canvas class="particles-js-canvas-el" width="1262" height="765" style="width: 100%; height: 100%;"></canvas></div>
		<div class="apTitle">商城管理中心</div>
		<div class="logcon">
			<input id="name" type="text" placeholder="账号">
			<input id="password" type="password" placeholder="密码">
			<button id="loginbtn" type="button">登录</button>
		</div>

</body>
<script src="js/login.js"></script>
<script src="js/loginApp.js"></script>
<script>
$("#loginbtn").click(function () {
	var name=$("#name").val();
	var password=$("#password").val();
	$.ajax({
		type:"post",
		url:"/ssm_1905_lijinyuan/login",
		data:{"name":name,"password":password},//{'name':name，‘age’:age}
		async:false,
		success:function (result) {
			if(result=="1"){
				window.location.href="index.html";
			}else{
				alert("登陆失败,用户名或密码错误！");
			}
		}
	});
});
</script>
</html>